import express from 'express';
import {
  getOverview,
  getCategoryStats,
  getMonthlyStats,
  getAccountStats
} from '../controllers/statisticsController.js';

const router = express.Router();

// GET /api/statistics/overview - 获取统计概览
router.get('/overview', getOverview);

// GET /api/statistics/categories - 获取按分类的统计
router.get('/categories', getCategoryStats);

// GET /api/statistics/monthly - 获取按月份的统计
router.get('/monthly', getMonthlyStats);

// GET /api/statistics/accounts - 获取按账户类型的统计
router.get('/accounts', getAccountStats);

export default router;